Re: [campsite-support] how to include (php or txt) file in template
  • Use smarty built-in functions include and include_php instead, like this:

    {{ include file='your_file.txt' }}

    and

    {{ include_php file='your_file.php' }}


    Cheers,


    On Sun, Nov 22, 2009 at 3:57 PM, wrote:
    > Author: RobertB
    > Link:
  • Holman thanks!
    Robert
  • Holman, I think, i found little bug in
    popup.php file in campsiteimage plugin for TinyMCE.

    Because of problems with images, which must be center positioned, I think that correct code in 73. line is:



    and not



    I make this correction and now center positioning of images work OK.

    I want to thank all of you, who wrote this excellent tool for media websites. These days I getting to know the logic of Campsite and I am impressed. Thank you all for work and time.
    Robert
  • Hi Robert !!

    Thanks for the words. Yeah, another user reported the same issue and
    we already fixed it. It will be available for next release, thank you
    anyway.

    Best,


    On Fri, Dec 4, 2009 at 3:33 PM, wrote:
    > Author: RobertB
    > Link:
    Holman can you please help me
    how to check if custom article filed (in my situation field Audio)
    is empty and in this case not print anything

    This code not work:

    {{ if [!] $campsite->article->Audio == "" }}
    Audio posnetki:


      {{ $campsite->article->Audio }}


    {{ /if }}

    Thanks
    Robert